/*
 * @功能描述: 
 * @版本: v1.0.0
 * @作者: LuAn
 * @Date: 2021-09-01 06:47:42
 * @LastEditTime: 2021-09-01 06:55:33
 */
#ifndef BSP_EPIT_H
#define BSP_EPIT_H
#include "imx6ul.h"
#include "bsp_int.h"
void epit_init(EPIT_Type *epit, uint32_t frac, int countdown_val);
void epit_enable(EPIT_Type *epit, IRQn_Type nirq, system_irq_handler_t handle, void *args);
void epit_clr_isr(EPIT_Type* epit);
void epit_stop(EPIT_Type* epit);
void epit_restart(EPIT_Type* epit, uint32_t count);
#endif